import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  server:{
    https:true,
    host:'0.0.0.0',
    proxy:{
      '/api/alphabetscoreoss': {
        target: 'https://aipigaidirect.xiongmaols.com/api/alphabetscoreoss',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api\/alphabetscoreoss/, '')
      },
    }
  },
})
